package com.nondo.dean.dealer.model.result;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import com.nondo.dean.common.tool.BeanUtils;
import com.nondo.dean.dealer.domain.Activity;

/**
 * @author xiaofan
 * @Description: 活动详情
 * @throws
 * @date 2018-05-0910:48
 * @Version 0.1
 */
public class ActivityDetailResult implements Serializable{
    
    private static final long serialVersionUID = 58856983599520759L;
    
    /**
     * 活动名称
     */
    private String name;
    /**
     * 活动内容
     */
    private String body;
    /**
     * 活动开始时间
     */
    private String startTime;
    /**
     * 活动接收时间
     */
    private String endTime;
    /**
     * 活动模板ID
     */
    private Integer templateId;
    /**
     * 模板地址
     */
    private String templateUrl;
    /**
     * 活动商品折扣率
     */
    private BigDecimal discountRate;
    /**
     * 店铺地址
     */
    private String address;
    /**
     * 联系电话
     */
    private String phone;
    /**
     * 活动产品
     */
    private List<ActivityProductResult> activityProductResultList;



    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public Integer getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Integer templateId) {
        this.templateId = templateId;
    }

    public String getTemplateUrl() {
        return templateUrl;
    }

    public void setTemplateUrl(String templateUrl) {
        this.templateUrl = templateUrl;
    }

    public BigDecimal getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(BigDecimal discountRate) {
        this.discountRate = discountRate;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public List<ActivityProductResult> getActivityProductResultList() {
        return activityProductResultList;
    }

    public void setActivityProductResultList(List<ActivityProductResult> activityProductResultList) {
        this.activityProductResultList = activityProductResultList;
    }

    public static ActivityDetailResult coverToBean(Activity activity){
        ActivityDetailResult bean =new ActivityDetailResult();
        BeanUtils.copy(activity,bean);
        return bean;
    }


}
